/*
 * data.java
 *
 * Created on 14 de Novembro de 2007, 00:10
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package classes;

import java.util.Date;

/**
 *
 * @author kurumin
 */
public class data
{
    
    /** Creates a new instance of data */
    public data()
    {
    }
    public String geradata()
    {
               Date data = new Date();
               String date =Integer.toString(1900+data.getYear())
                            +"-"+Integer.toString(1+data.getMonth())
                            +"-"+Integer.toString(data.getDate()) ;
               
        return date;
        //this.jFormattedTextField1.setValue(date);
    }
}
